package tech.aistar.entity;
import java.io.Serializable;

/**
 * @author success
 * @version 1.0
 * @description:本类用来演示:
 * @date 2019/9/5 0005
 */
public class User implements Serializable{
    private Integer id;

    private String username;

    private String password;

    private int power;

    public User() {
    }

    public User(Integer id, String username, String password, int power) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.power = power;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getPower() {
        return power;
    }

    public void setPower(int power) {
        this.power = power;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("User{");
        sb.append("id=").append(id);
        sb.append(", username='").append(username).append('\'');
        sb.append(", password='").append(password).append('\'');
        sb.append(", power=").append(power);
        sb.append('}');
        return sb.toString();
    }
}
